# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pdblaster
pkgver=4.fc8abb3
pkgrel=8
pkgdesc='Extract PDB file paths from large sample sets of executable files.'
groups=('blackarch' 'blackarch-forensic' 'blackarch-malware')
arch=('any')
url='https://github.com/SecurityRiskAdvisors/PDBlaster'
license=('GPL3')
depends=('python' 'python-pefile' 'python-pandas' 'python-termcolor')
makedepends=('git')
source=("$pkgname::git+https://github.com/SecurityRiskAdvisors/PDBlaster.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" readme.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

